package com.mc.bean;
/**
 * @Description 年级实体类
 * @author zl
 * @date 2023/2/11 11:45
 * @version 1.0
 */
public class Grade {

    /**
     * 年纪编号
     */
    private int gid;

    /**
     * 年纪名称
     */
    private String gname;

    @Override
    public String toString() {
        return "Grade{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                '}';
    }

    public Grade() {
    }

    public Grade(int gid) {
        this.gid = gid;
    }

    public Grade(int gid, String gname) {
        this.gid = gid;
        this.gname = gname;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }
}
